<template>
	<view class="content">
		<view class="header">
			<view class="box">
				<text class="iconfont icon-left" @click="go()"></text>
				<text class="title">私人法务</text>
			</view>
		</view>
		<view class="bosx">
			<text class="title">个人信息资料</text>
			<view class="item">
				<text>姓名</text>
				<input type="text" value="" placeholder="请填写真实姓名" placeholder-class="s" />
			</view>
			<view class="item">
				<text>身份证号</text>
				<input type="text" value="" placeholder="请填写十八位身份证号" placeholder-class="s" />
			</view>
			<view class="item">
				<text>所在地区</text>
				<view class="fr">
					<picker @change="bindPickerChange" :value="index" :range="array">
						<view class="uni-input">{{array[index]}}</view>
					</picker>
				</view>
			</view>
			<view class="button" @click="link('/pages/service/pay_person_service')">提交</view>
			<view class="xy">
				<view>
					<image src="../../static/fawu_09.jpg" mode=""></image>
				</view>
				<text>请仔细阅读《个人法务协议》</text>
			</view>
		</view>
		<view style="height: 130rpx;"></view>
		<diy></diy>
	</view>
</template>

<script>
	import diy from '@/components/diy.vue';
	export default {
		components:{
			diy
		},
		data() {
			return {
				array: ['中国', '美国', '巴西', '日本'],
				index: 0,
			}
		},
		onLoad() {

		},
		methods: {
			link(n) {
				uni.navigateTo({
					url: n,
					animationType: 'pop-in',
					animationDuration: 200
				})
			},
			bindPickerChange: function(e) {
				console.log('picker发送选择改变，携带值为', e.target.value)
				this.index = e.target.value
			},
			go(){
				uni.navigateBack({
					delta:1
				})
			}
		}
	}
</script>

<style lang="scss">
	view,
	text,
	input,
	textarea {
		box-sizing: border-box;
	}

	page {
		background: #fff;
	}

	uni-picker {
		width: 100%;
		height: 100%;
		display: flex;
		align-items: center;

		.uni-input {
			font-size: 24rpx;
		}
	}


	.bosx {
		overflow: hidden;
		width: 666rpx;
		margin: 0 auto;
		margin-top: 125rpx;
		box-shadow: 3px 3px 21px 0px rgba(45, 45, 45, 0.2);
		border-radius: 9px;
		position: relative;
		padding: 40rpx;
		height: 810rpx;

		.xy {
			overflow: hidden;
			display: flex;
			align-items: center;
			justify-content: center;
			width: 100%;
			position: absolute;
			left: 0;
			bottom: 42rpx;

			view {
				width: 20rpx;
				height: 20rpx;
				border-radius: 3rpx;
				display: flex;
				align-items: center;
				justify-content: center;
				margin-right: 10rpx;

				image {
					width: 100%;
					height: 100%;
					display: block;
				}
			}

			text {
				font-size: 20rpx;
				color: #CDCDCD;
			}
		}

		.title {
			display: block;
			text-align: center;
			font-size: 30rpx;
			color: #2D2D2D;
			font-weight: bold;
			margin-bottom: 90rpx;
		}

		.button {
			width: 100%;
			height: 70rpx;
			background: #153B33;
			font-size: 28rpx;
			color: #fff;
			text-align: center;
			line-height: 70rpx;
			margin-top: 70rpx;
			border-radius: 6rpx;
		}

		.item {
			overflow: hidden;
			width: 100%;
			display: flex;
			margin-bottom: 40rpx;
			align-items: center;
			justify-content: space-between;

			text {
				font-size: 26rpx;
				color: #2D2D2D;
				width: 110rpx;
				font-weight: bold;
			}

			input {
				width: 450rpx;
				border-radius: 6rpx;
				padding-left: 15rpx;
				font-size: 24rpx;
				color: #000;
				height: 70rpx;
				border: 1px solid #D8D8D8;
				outline: none;
			}

			.fr {
				width: 450rpx;
				border-radius: 6rpx;
				padding-left: 15rpx;
				font-size: 20rpx;
				color: #000;
				height: 70rpx;
				border: 1px solid #D8D8D8;
				outline: none;
			}

			.s {
				color: #CDCDCD;
			}
		}
	}

	.content {
		overflow: hidden;
		width: 100%;
		position: relative;
		height: 100vh;

		.header {
			overflow: hidden;
			width: 100%;
			background-image: url(../../static/fawu_06.jpg);
			background-size: 100% 33rpx;
			background-repeat: no-repeat;
			background-position: bottom center;
			height: 155rpx;
			background-color: #153B33;
			position: relative;
			padding: 60rpx 0 0 0;

			.box {
				overflow: hidden;
				width: 100%;
				display: flex;
				position: relative;
				align-items: center;
				justify-content: center;

				.title {
					font-size: 28rpx;
					color: #DBAC53;
				}
				.icon-shezhi{
					position: absolute;
					right: 17rpx;
					top: 50%;
					font-size: 30rpx;
					transform: translateY(-50%);
				}
				.icon-left{
					color: #DBAC53;
					position: absolute;
					left: 17rpx;
					font-size: 35rpx;
					top: 50%;
					transform: translateY(-50%);
				}
			}
		}
	}
</style>
